#!/usr/bin/env python3

from launch import LaunchDescription
from launch_ros.actions import Node

def generate_launch_description():
    return LaunchDescription([
        # Publisher Node with Trace Propagation
        Node(
            package='opentelemetry_demo',
            executable='publisher_node_with_trace',
            name='publisher_node_with_trace',
            output='screen',
            parameters=[]
        ),
        
        # Processor Node with Trace Propagation
        Node(
            package='opentelemetry_demo',
            executable='processor_node_with_trace',
            name='processor_node_with_trace',
            output='screen',
            parameters=[]
        ),
        
        # Consumer Node with Trace Propagation
        Node(
            package='opentelemetry_demo',
            executable='consumer_node_with_trace',
            name='consumer_node_with_trace',
            output='screen',
            parameters=[]
        ),
    ])
